<?php

namespace Core\MVC;

class ModelMap {
	private $viewName;
	private $model = array();
	
	public function __construct($viewName, $model = array()) {
		$this->viewName = $viewName;
		$this->model = $model;
	}
	
	public function setViewName($viewName) {
		$this->viewName = $viewName;
	}
	
	public function getViewName() {
		return $this->viewName;
	}
	
	public function add($key, $value) {
		$this->model[$key] = $value;
	}
	
	public function getModel() {
		return $this->model;
	}
}